<DIV style="DISPLAY: none" id=reservebox title="Reserve meeting room">
    <FORM id=reserveformID method=post>
        <DIV class=sysdesc>
            &nbsp;
        </DIV>
        <DIV class=rowElem>
            <LABEL>
                meeting room:
            </LABEL>
            <!--<input type="text" name="meeting" id="meeting" class="validate[required]">-->
            <SELECT id=meeting class="selectpicker" name=meeting>
                #foreach($meeting in $meetingTool.getAllMeeting($session.getAttribute("user").getUserRight()))<option value="$meeting.id" tv="$meeting.hasTv" lync="$meeting.hasLync" floor="$meeting.floor" it="$meeting.hasIt" phone="$meeting.hasPhone" maxNums="$meeting.maxNums" building="$meeting.building">$meeting.meetingName</option>#end
            </SELECT>
        </DIV>
        <DIV class=rowElem>
            <LABEL>
                Repeated weeks:
            </LABEL>
            <SELECT id=repweeks name=repweeks class="selectpicker">
                <OPTION selected value="0">Not repeated</OPTION>
				<!--权限校验-->
				#if($session.getAttribute("user").getUserRight()>=3||$session.getAttribute("user").getIsAdmin()==1)
                <OPTION value="1">1 week</OPTION>
                <OPTION value="2">2 weeks</OPTION>
                <OPTION value="3">3 weeks</OPTION>
                <OPTION value="4">4 weeks</OPTION>
				#end
            </SELECT>
        </DIV>
        <DIV class=rowElem style="display:none;" id="weeksdiv">
            <LABEL>
                week:
            </LABEL>
            <div id="weeks">
                <input type="checkbox" id="check1" name="weeks" value="1"/>
                <label for="check1">
                    周一
                </label>
                <input type="checkbox" id="check2" name="weeks" value="2"/>
                <label for="check2">
                    周二
                </label>
                <input type="checkbox" id="check3" name="weeks" value="3"/>
                <label for="check3">
                    周三
                </label>
                <input type="checkbox" id="check4" name="weeks" value="4"/>
                <label for="check4">
                    周四
                </label>
                <input type="checkbox" id="check5" name="weeks" value="5"/>
                <label for="check5">
                    周五
                </label>
            </div>
        </DIV>
        <DIV class=rowElem>
            <LABEL>
                start time:
            </LABEL>
            <INPUT id=start class=validate[required] name=start>
        </DIV>
        <DIV class=rowElem>
            <LABEL>
                end time:
            </LABEL>
            <INPUT id=end class=validate[required] name=end>
        </DIV>
        <DIV class=rowElem>
            <LABEL>
                Title:
            </LABEL>
            <INPUT id=title name=title class=validate[required]>
        </DIV>
        <DIV class=rowElem>
            <LABEL>
                Details:
            </LABEL>
            <TEXTAREA id=details rows=3 cols=43 name=details class=validate[required]></TEXTAREA>
        </DIV>
        <DIV class=rowElem>
        </DIV>
        <DIV class=rowElem>
        </DIV>
        <DIV id=addhelper class=ui-widget>
            <DIV style="PADDING-BOTTOM: 5px; PADDING-LEFT: 5px; PADDING-RIGHT: 5px; PADDING-TOP: 5px" class="ui-state-error ui-corner-all">
                <DIV id=addresult>
                </DIV>
            </DIV>
        </DIV>
    </FORM>
</DIV>
#includeJs(["jquery.validationEngine","jquery-ui-timepicker-addon","jquery.validationEngine-en","dateutil","status/revert"])